package com.longchat.dto.comm;

import java.util.ArrayList;
import java.util.List;

public class DatatablesPageViewInfo<T> {
	
	private List<T> data;//aaData 与datatales 加载的“dataSrc"对应
	private int recordsFiltered;   
	private int recordsTotal;

	public DatatablesPageViewInfo(){
		super();
	}
	public DatatablesPageViewInfo(List<T> data, int recordsFiltered,
			int recordsTotal) {
		super();
		this.data = data;
		this.recordsFiltered = recordsFiltered;
		this.recordsTotal = recordsTotal;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public int getRecordsFiltered() {
		return recordsFiltered;
	}
	public void setRecordsFiltered(int recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}
	public int getRecordsTotal() {
		return recordsTotal;
	}
	public void setRecordsTotal(int recordsTotal) {
		this.recordsTotal = recordsTotal;
	}
	
	public DatatablesPageViewInfo<T> nullPages(){
		DatatablesPageViewInfo<T> dataPages =  new DatatablesPageViewInfo<T>();
		dataPages.setData(new ArrayList<T>());
		return dataPages;
	}
	
}
